#include "Node.h"
//-------------------------------------------------------------------------
Node::Node(int _cost,int _x, int _y)
:
m_TotalCost(0),
m_Cost(0)
{
	m_Cost = _cost;
}
//-------------------------------------------------------------------------
Node::~Node(){
	/***/
}
//-------------------------------------------------------------------------
void Node::SetParent(Node *_node){
	m_pkParent = _node;
	/***/
}
//-------------------------------------------------------------------------
Node* Node::GetParent(){

	return m_pkParent;
}
//-------------------------------------------------------------------------
int Node::GetTotalCost(){

	return m_TotalCost;
}
//-------------------------------------------------------------------------
void Node::SetTotalCost(int _parentCost){

	m_TotalCost = m_Cost + 1 + _parentCost;

}
//-------------------------------------------------------------------------
